package org.rcy.ruicingmarket.user;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.Parameter;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springdoc.api.annotations.ParameterObject;

import java.io.Serializable;
import java.util.Date;

/**
 * @author RuicyWu
 * @Date 2021/12/30 10:51
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OssUserVo implements Serializable {
    private Long uid; //用户编号
    @Parameter(description = "用户名称")
    private String name; //用户名称
    @Parameter(description = "登录账号")
    private String account;
    @JsonIgnore
    private String password;
    private Date createTime;
    private Date lastLoginTime;

    public OssUserVo(Long uid, String account, Date createTime, Date lastLoginTime) {
        this.uid = uid;
        this.account = account;
        this.createTime = createTime;
        this.lastLoginTime = lastLoginTime;
    }
}
